<?php

namespace App\Policies;

use App\Models\Admin;

class AdminPolicy
{
    public function view(Admin $admin, Admin $user): bool
    {
        return true;
    }

    public function create(Admin $admin): bool
    {
        return true;
    }

    public function update(Admin $admin, Admin $user): bool
    {
        return $user->id > 1 || $user->id === $admin->id;
    }

    public function delete(Admin $admin, Admin $user): bool
    {
        return $user->id > 1;
    }
}
